package com.yanqu.road.server.cmd.activity.operamask;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.OperaMaskProto;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.protocol.GameProtocol;

@Cmd(code = GameProtocol.S_OPERA_MASK_START_SCENE_FROM_CROSS, desc = "")
public class OperaMaskStartSceneFromCrossCmd extends OperaMaskStartSceneCmd {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        OperaMaskProto.CrossOperaMaskStartSceneMsg reqMsg = OperaMaskProto.CrossOperaMaskStartSceneMsg.parseFrom(packet.getBytes());
        sceneId = reqMsg.getSceneId();
        oldRank = reqMsg.getOldRank();
        return true;
    }

}
